package com.pengke.pangu.service.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
/**
 * <p>
 * 角色权限关联表
 * </p>
 *
 * @author lijunjie
 * @since 2025-02-15
 */
@Getter
@Setter
@ToString
@TableName("sys_role_permission")
@Schema(name = "SysRolePermission", description = "角色权限关联表")
public class SysRolePermission implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @Schema(description = "主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 角色ID
     */
    @TableField("role_id")
    @Schema(description = "角色ID")
    private Integer roleId;

    /**
     * 资源权限ID
     */
    @TableField("permission_id")
    @Schema(description = "资源权限ID")
    private Integer permissionId;
}
